| API Documentation |  |

- MAIN PAGE
- NAMESPACES
- CLASSES

NodeWrapper.h
1 // NodeWrapper.h
3 //
5
6 namespace nkAstraeus::nkGraphicsWrap
7 {
11 class NodeWrapper final
12 {
13 public :
14
15 // Environment update
21 static void updateEnvironment (nkScripts::Environment* env) ;
27 static void inherit (nkScripts::UserType* childType) ;
28
29 // Callbacks
30 // Tree
41 static nkScripts::OutputValue setParentNode (const nkScripts::DataStack& stack) ;
52 static nkScripts::OutputValue getParentNode (const nkScripts::DataStack& stack) ;
53 // Position
64 static nkScripts::OutputValue translateAbsolute (const nkScripts::DataStack& stack) ;
75 static nkScripts::OutputValue translateRelative (const nkScripts::DataStack& stack) ;
86 static nkScripts::OutputValue setPositionAbsolute (const nkScripts::DataStack& stack) ;
97 static nkScripts::OutputValue setPositionRelative (const nkScripts::DataStack& stack) ;
108 static nkScripts::OutputValue getPositionAbsolute (const nkScripts::DataStack& stack) ;
119 static nkScripts::OutputValue getPositionRelative (const nkScripts::DataStack& stack) ;
120 // Rotation
131 static nkScripts::OutputValue rotateAbsolute (const nkScripts::DataStack& stack) ;
142 static nkScripts::OutputValue rotateRelative (const nkScripts::DataStack& stack) ;
153 static nkScripts::OutputValue setOrientationAbsolute (const nkScripts::DataStack& stack) ;
164 static nkScripts::OutputValue setOrientationRelative (const nkScripts::DataStack& stack) ;
175 static nkScripts::OutputValue getOrientationAbsolute (const nkScripts::DataStack& stack) ;
186 static nkScripts::OutputValue getOrientationRelative (const nkScripts::DataStack& stack) ;
187 // Scale
198 static nkScripts::OutputValue applyScale (const nkScripts::DataStack& stack) ;
209 static nkScripts::OutputValue setScaleAbsolute (const nkScripts::DataStack& stack) ;
220 static nkScripts::OutputValue setScaleRelative (const nkScripts::DataStack& stack) ;
231 static nkScripts::OutputValue getScaleAbsolute (const nkScripts::DataStack& stack) ;
242 static nkScripts::OutputValue getScaleRelative (const nkScripts::DataStack& stack) ;
243 // Transform
254 static nkScripts::OutputValue setRelativeTransform (const nkScripts::DataStack& stack) ;
265 static nkScripts::OutputValue setAbsoluteTransform (const nkScripts::DataStack& stack) ;
276 static nkScripts::OutputValue getRelativeTransform (const nkScripts::DataStack& stack) ;
287 static nkScripts::OutputValue getAbsoluteTransform (const nkScripts::DataStack& stack) ;
298 static nkScripts::OutputValue updateTransformations (const nkScripts::DataStack& stack) ;
309 static nkScripts::OutputValue dispatchDirtyTransform (const nkScripts::DataStack& stack) ;
310 // Entities
321 static nkScripts::OutputValue addEntityToTrack (const nkScripts::DataStack& stack) ;
332 static nkScripts::OutputValue stopEntityTracking (const nkScripts::DataStack& stack) ;
333 // Axes
344 static nkScripts::OutputValue getAbsoluteUp (const nkScripts::DataStack& stack) ;
355 static nkScripts::OutputValue getAbsoluteFront (const nkScripts::DataStack& stack) ;
366 static nkScripts::OutputValue getAbsoluteRight (const nkScripts::DataStack& stack) ;
367 } ;
368 }
nkAstraeus::nkGraphicsWrap::NodeWrapper::setParentNode
static nkScripts::OutputValue setParentNode(const nkScripts::DataStack &stack)
nkAstraeus::nkGraphicsWrap::NodeWrapper
Wraps a nkGraphics::Node and offers functions for use in scripting.
Definition: NodeWrapper.h:12
nkScripts::Environment
Defines an environment in which scripts can execute.
Definition: Environment.h:14
nkAstraeus::nkGraphicsWrap::NodeWrapper::setPositionAbsolute
static nkScripts::OutputValue setPositionAbsolute(const nkScripts::DataStack &stack)
nkAstraeus::nkGraphicsWrap::NodeWrapper::setAbsoluteTransform
static nkScripts::OutputValue setAbsoluteTransform(const nkScripts::DataStack &stack)
nkAstraeus::nkGraphicsWrap::NodeWrapper::getAbsoluteUp
static nkScripts::OutputValue getAbsoluteUp(const nkScripts::DataStack &stack)
nkAstraeus::nkGraphicsWrap::NodeWrapper::getPositionAbsolute
static nkScripts::OutputValue getPositionAbsolute(const nkScripts::DataStack &stack)
nkMemory::BufferView
A view over data.
Definition: BufferView.h:18
nkAstraeus::nkGraphicsWrap::NodeWrapper::getOrientationAbsolute
static nkScripts::OutputValue getOrientationAbsolute(const nkScripts::DataStack &stack)
nkAstraeus::nkGraphicsWrap::NodeWrapper::getPositionRelative
static nkScripts::OutputValue getPositionRelative(const nkScripts::DataStack &stack)
nkAstraeus::nkGraphicsWrap::NodeWrapper::setPositionRelative
static nkScripts::OutputValue setPositionRelative(const nkScripts::DataStack &stack)
nkAstraeus::nkGraphicsWrap::NodeWrapper::updateEnvironment
static void updateEnvironment(nkScripts::Environment *env)
nkAstraeus::nkGraphicsWrap::NodeWrapper::applyScale
static nkScripts::OutputValue applyScale(const nkScripts::DataStack &stack)
nkAstraeus::nkGraphicsWrap::NodeWrapper::translateRelative
static nkScripts::OutputValue translateRelative(const nkScripts::DataStack &stack)
nkAstraeus::nkGraphicsWrap::NodeWrapper::stopEntityTracking
static nkScripts::OutputValue stopEntityTracking(const nkScripts::DataStack &stack)
nkScripts::UserType
Represents a user type and all the information and control related.
Definition: UserType.h:27
nkAstraeus::nkGraphicsWrap::NodeWrapper::getAbsoluteRight
static nkScripts::OutputValue getAbsoluteRight(const nkScripts::DataStack &stack)
nkScripts::FunctionParameter
A function parameter, used within the stack of arguments.
Definition: FunctionParameter.h:25
nkAstraeus::nkGraphicsWrap::NodeWrapper::setScaleRelative
static nkScripts::OutputValue setScaleRelative(const nkScripts::DataStack &stack)
nkAstraeus::nkGraphicsWrap::NodeWrapper::inherit
static void inherit(nkScripts::UserType *childType)
nkAstraeus::nkGraphicsWrap::NodeWrapper::getRelativeTransform
static nkScripts::OutputValue getRelativeTransform(const nkScripts::DataStack &stack)
nkAstraeus::nkGraphicsWrap::NodeWrapper::getOrientationRelative
static nkScripts::OutputValue getOrientationRelative(const nkScripts::DataStack &stack)
nkAstraeus::nkGraphicsWrap::NodeWrapper::translateAbsolute
static nkScripts::OutputValue translateAbsolute(const nkScripts::DataStack &stack)
nkAstraeus::nkGraphicsWrap::NodeWrapper::setScaleAbsolute
static nkScripts::OutputValue setScaleAbsolute(const nkScripts::DataStack &stack)
nkAstraeus::nkGraphicsWrap::NodeWrapper::getAbsoluteFront
static nkScripts::OutputValue getAbsoluteFront(const nkScripts::DataStack &stack)
nkAstraeus::nkGraphicsWrap
Encompasses the wrapping of nkGraphics for scripting.
Definition: BoundingBoxWrapper.h:7
nkAstraeus::nkGraphicsWrap::NodeWrapper::setOrientationRelative
static nkScripts::OutputValue setOrientationRelative(const nkScripts::DataStack &stack)
nkAstraeus::nkGraphicsWrap::NodeWrapper::rotateAbsolute
static nkScripts::OutputValue rotateAbsolute(const nkScripts::DataStack &stack)
nkAstraeus::nkGraphicsWrap::NodeWrapper::getParentNode
static nkScripts::OutputValue getParentNode(const nkScripts::DataStack &stack)
nkAstraeus::nkGraphicsWrap::NodeWrapper::getScaleRelative
static nkScripts::OutputValue getScaleRelative(const nkScripts::DataStack &stack)
nkAstraeus::nkGraphicsWrap::NodeWrapper::dispatchDirtyTransform
static nkScripts::OutputValue dispatchDirtyTransform(const nkScripts::DataStack &stack)
nkAstraeus::nkGraphicsWrap::NodeWrapper::updateTransformations
static nkScripts::OutputValue updateTransformations(const nkScripts::DataStack &stack)
nkAstraeus::nkGraphicsWrap::NodeWrapper::addEntityToTrack
static nkScripts::OutputValue addEntityToTrack(const nkScripts::DataStack &stack)
nkAstraeus::nkGraphicsWrap::NodeWrapper::setOrientationAbsolute
static nkScripts::OutputValue setOrientationAbsolute(const nkScripts::DataStack &stack)
nkAstraeus::nkGraphicsWrap::NodeWrapper::getAbsoluteTransform
static nkScripts::OutputValue getAbsoluteTransform(const nkScripts::DataStack &stack)
nkAstraeus::nkGraphicsWrap::NodeWrapper::getScaleAbsolute
static nkScripts::OutputValue getScaleAbsolute(const nkScripts::DataStack &stack)
nkAstraeus::nkGraphicsWrap::NodeWrapper::rotateRelative
static nkScripts::OutputValue rotateRelative(const nkScripts::DataStack &stack)
nkAstraeus::nkGraphicsWrap::NodeWrapper::setRelativeTransform
static nkScripts::OutputValue setRelativeTransform(const nkScripts::DataStack &stack)